<%@page import="entities.Page"%>
<%
	Page pages = (Page) request.getAttribute("page");

	//Value for seo
	String title = pages.getTitle();
	String description = pages.getTitle() + " in JavaMonday Tutorial";
	String url = pages.getUrl();
	String keywords = pages.getKeywords().replaceAll("(\\r|\\n)", "");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

		<div id="leftSideContent">
			<div class="bredcrum">
				<%=pages.getBredcrum() %>
			</div>
			<div class="roundBox clearafter" id="newsDetailPage">
				<div class="right" style="margin-left: 10px;">
					<script type="text/javascript"><!--
					google_ad_client = "ca-pub-2883566427648799";
					/* epufloor_300x250 */
					google_ad_slot = "2686511480";
					google_ad_width = 300;
					google_ad_height = 250;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
				</div>
				<%=pages.getContent() %>
			</div>
		</div>
		
		<jsp:include page="/elements/right.jsp" />
		
		<div class="clear"></div>
	
<jsp:include page="/layouts/footer.jsp" />